package www.authority.service;

import www.common.entity.DTreeEntity;
import www.dbconfig.util.service.BaseService;
import www.authority.entity.SysDeptEntity;

import java.util.List;
import java.util.Map;

/**
 * @program: authority
 * @description: 部门 service 层
 * @author: Mr.Yan
 * @create: 2018-11-15 13:46
 **/
public interface SysDeptService extends BaseService<SysDeptEntity> {

	/**
	 * 获取部门树数据
	 * @return
	 */
	List<DTreeEntity> findDTreeData();

	/**
	 * 获取角色的部门数据
	 * @param roleId
	 * @return
	 */
	List<SysDeptEntity> findListByRoleId(String roleId);

	/**
	 * 获取菜单树数据权限
	 * @param ajaxMap
	 * @return
	 */
	List<SysDeptEntity> findMenuList(Map<String, Object> ajaxMap);
}
